sgdk
types.h
Go to the documentation of this file.
00001 
00010 #ifndef _TYPES_H_
00011 #define _TYPES_H_
00012 
00017 #ifndef FALSE
00018 #define FALSE   0
00019 #endif
00020 
00024 #ifndef TRUE
00025 #define TRUE    1
00026 #endif
00027 
00031 #ifndef NULL
00032 #define NULL    0
00033 #endif
00034 
00035 #ifndef MIN_U8
00036 #define MIN_U8  0x00
00037 #endif
00038 #ifndef MAX_U8
00039 #define MAX_U8  0xFF
00040 #endif
00041 #ifndef MIN_S8
00042 #define MIN_S8  -0x80
00043 #endif
00044 #ifndef MAX_S8
00045 #define MAX_S8  0x7F
00046 #endif
00047 
00048 #ifndef MIN_U16
00049 #define MIN_U16 0x0000
00050 #endif
00051 #ifndef MAX_U16
00052 #define MAX_U16 0xFFFF
00053 #endif
00054 #ifndef MIN_S16
00055 #define MIN_S16 -0x8000
00056 #endif
00057 #ifndef MAX_S16
00058 #define MAX_S16 0x7FFF
00059 #endif
00060 
00061 #ifndef MIN_U32
00062 #define MIN_U32 0x0000
00063 #endif
00064 #ifndef MAX_U32
00065 #define MAX_U32 0xFFFFFFFF
00066 #endif
00067 #ifndef MIN_S32
00068 #define MIN_S32 -0x80000000
00069 #endif
00070 #ifndef MAX_S32
00071 #define MAX_S32 0x7FFFFFFF
00072 #endif
00073 
00074 
00079 #define s8      char
00080 
00084 #define s16     short
00085 
00089 #define s32     long
00090 
00095 #define u8      unsigned char
00096 
00100 #define u16     unsigned short
00101 
00105 #define u32     unsigned long
00106 
00111 #define vs8     volatile s8
00112 
00116 #define vs16    volatile s16
00117 
00121 #define vs32    volatile s32
00122 
00127 #define vu8     volatile u8
00128 
00132 #define vu16    volatile u16
00133 
00137 #define vu32    volatile u32
00138 
00139 
00140 #ifndef uint8_t
00141 #define uint8_t     u8
00142 #endif
00143 #ifndef uint16_t
00144 #define uint16_t    u16
00145 #endif
00146 #ifndef uint32_t
00147 #define uint32_t    u32
00148 #endif
00149 #ifndef int8_t
00150 #define int8_t      s8
00151 #endif
00152 #ifndef int16_t
00153 #define int16_t     s16
00154 #endif
00155 #ifndef int32_t
00156 #define int32_t     s32
00157 #endif
00158 
00159 
00164 typedef s16 fix16;
00169 typedef s32 fix32;
00170 
00171 
00172 #define FASTCALL
00173 
00187 typedef struct
00188 {
00189         u16 x;
00190         u16 y;
00191         u16 w;
00192         u16 h;
00193 } Box;
00194 
00206 typedef struct
00207 {
00208         u16 x;
00209         u16 y;
00210         u16 ray;
00211 } Circle;
00212 
00213 
00214 typedef void _voidCallback();
00215 
00216 
00217 u8  getZeroU8();
00218 u16 getZeroU16();
00219 u32 getZeroU32();
00220 
00221 
00222 #endif // _TYPES_H_
 All Classes Files Functions Variables Typedefs Enumerations Defines